package cn.itsource.xhy.basic.mapper;

import cn.itsource.xhy.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {

    void save(T t);

    void update(T t);

    void del(Long id);

    T findById(Long id);

    List<T> findAll();

    /*查询总数量*/
    Long count(BaseQuery query);

    /*查询分页数据*/
    List<T> queryPage(BaseQuery query);

    void patchDel(Long[] ids);
}
